package it.basilikos.core.service;

import it.basilikos.core.model.Agent;
import it.basilikos.core.model.BaseEntity;
import it.basilikos.core.model.dao.IAgentDAO;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AgentService<E extends BaseEntity,I> {
	
	@Autowired
	IAgentDAO adao;
	
	public Agent loadAgentById(Long id)
	{
		return adao.findById(id);
	}
	
	@Transactional
	public void foo()
	{
		for(Agent a: adao.findAll())
		{
			
		}
	}

}
